Rails.application.routes.draw do


  # devise_for :users
  devise_for :users, controllers: {
        sessions: 'users/sessions'
  }

  resources :articles do
  	resources :comments, shallow: true
  end

  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html


  root to: "articles#index"
end
